<template>
  <div>
    <!-- 这里就相当于我们以前的 app.vue -->
    <!-- <router-view></router-view> -->
    <PageHeader/>
    <Nuxt />
    <PageFooter/>
  </div>
</template>

<script>
import PageHeader from '@/components/PageHeader'
import PageFooter from '@/components/PageFooter'
export default {
  components: {
    PageHeader,
    PageFooter
  },
  mounted () {
    window.onunload = () => {
      // 刷新页面重置 city
      this.$store.commit('hotel/setLocationCity', undefined)
      this.$store.commit('hotel/resetSearchData')
      this.$store.commit('hotel/setTotal', 0)
    }
  }
}
</script>

<style lang="less">
@import "@/assets/fonts/iconfont.css";
html {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  word-spacing: 1px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

*{
  margin:0;
  padding:0;
}
ul, li, ol{
  list-style:none;
}
a{
  text-decoration:none;
  color:inherit;
}
em,i{
  font-style: normal;
}
</style>
